<?php
/**
 * Created by PhpStorm.
 * User: yihua
 * Date: 2017/4/12
 * Time: 1:02
 */

namespace app\home\model\page\setting;


use app\api\model\dao\Admin;
use app\library\PageBase;

class UserList extends PageBase
{
    public function __construct()
    {
        parent::__construct();
    }

    public function excute($param)
    {
        $ret = $this->checkToken($param);
        if(false === $ret){
            header('Location:/home/loginpage');
            exit;
        }

        $obj = new Admin();
        $conds = [];
        $data = $obj->userPage();
        $this->data = $data;
        return $this->getRes();
    }

}